<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3//EN">
<HTML><HEAD>
		<TITLE>User's Reference - Grid</TITLE>
		<META HTTP-EQUIV="keywords" CONTENT="GRAPHICS VISUALIZATION VISUAL PROGRAM DATA
MINING">
	<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
</HEAD><BODY BGCOLOR="#FFFFFF" link="#00004b" vlink="#4b004b">
		<TABLE width=510 border=0 cellpadding=0 cellspacing=0>
			<TR>
				<TD><IMG src="../images/spacer.gif" width=80 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=49 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=24 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=100 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=3 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=127 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=6 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=50 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=71 height=1></TD>
			</TR>
			<TR>
				<TD colspan=9><IMG src="../images/flcgh_01.gif" width=510 height=24 alt="OpenDX - Documentation"></TD>
			</TR>
			<TR>
				<TD colspan=2><A href="../allguide.htm"><IMG src="../images/flcgh_02.gif" width=129 height=25 border="0" alt="Full Contents"></A></TD>
				<TD colspan=3><A href="../qikguide.htm"><IMG src="../images/flcgh_03.gif" width=127 height=25 border="0" alt="QuickStart Guide"></A></TD>
				<TD><A href="../usrguide.htm"><IMG src="../images/flcgh_04.gif" width=127 height=25 border="0" alt="User's Guide"></A></TD>
				<TD colspan=3><B><A href="../refguide.htm"><IMG src="../images/flcgh_05d.gif" width=127 height=25 border="0" alt="User's Reference"></A></B></TD>
			</TR>
			<TR>
				<TD><A href="refgu069.htm"><IMG src="../images/flcgh_06.gif" width=80 height=17 border="0" alt="Previous Page"></A></TD>
				<TD colspan=2><A href="refgu071.htm"><IMG src="../images/flcgh_07.gif" width=73 height=17 border="0" alt="Next Page"></A></TD>
				<TD><A href="../refguide.htm"><IMG src="../images/flcgh_08.gif" width=100 height=17 border="0" alt="Table of Contents"></A></TD>
				<TD colspan=3><A href="refgu009.htm"><IMG src="../images/flcgh_09.gif" width=136 height=17 border="0" alt="Partial Table of Contents"></A></TD>
				<TD><A href="refgu175.htm"><IMG src="../images/flcgh_10.gif" width=50 height=17 border="0" alt="Index"></A></TD>
				<TD><A href="../srchindx.htm"><IMG src="../images/flcgh_11.gif" width=71 height=17 border="0" alt="Search"></A></TD>
			</TR>
		</TABLE>
		<H3><A name="HDRGRID" ></A>Grid</H3>
		<A NAME="IDX537"></A><A NAME="IDX538"></A>
<P><STRONG>Category</STRONG>
<P>
<A HREF="refgu008.htm#HDRCATREL">Realization</A>
<P><STRONG>Function</STRONG>
<P>
Creates an output geometry.
<P><STRONG>Syntax</STRONG>
<PRE>
<STRONG>grid</STRONG> = Grid(<STRONG>point, structure, shape, density</STRONG>);
</PRE>
<P><STRONG>Inputs</STRONG>
<BR>
<TABLE BORDER>
<TR>
<TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Name
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Type
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Default
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">Description
</TH></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>point</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">vector
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">none
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">starting point from which the
grid is constructed
</TD></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>structure</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">string
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">&quot;brick&quot;
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">type of grid
</TD></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>shape</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">vector list
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">structure dependent
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">size and shape of structure
</TD></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>density</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">integer list
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">&#123;3, 3, ...&#125;
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">number of points to be put on
each grid element
</TD></TR></TABLE>
<P><STRONG>Outputs</STRONG>
<BR>
<TABLE BORDER>
<TR>
<TH ALIGN="LEFT" VALIGN="TOP" WIDTH="25%">Name
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="25%">Type
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="50%">Description
</TH></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="25%"><TT><STRONG>grid</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="25%">geometry field
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="50%">output grid
</TD></TR></TABLE>
<P><STRONG>Functional Details</STRONG>
<P>
<TABLE CELLPADDING="3">
<TR VALIGN="TOP"><TD><P><B><TT><STRONG>point</STRONG></TT>
</B></TD><TD><P>is the starting point from which the grid is constructed.
</TD></TR><TR VALIGN="TOP"><TD><P><B><TT><STRONG>structure</STRONG></TT>
</B></TD><TD><P>specifies the type of grid geometry and must be one of the
following:
"brick " (the default),
"crosshair,"
"ellipse,"
"line,"
"point," or
"rectangle."
<P>
For a structure specified as "point," it is neither necessary nor
useful to specify <TT><STRONG>shape</STRONG></TT> or
<TT><STRONG>density</STRONG></TT>.
For the other valid structures, the output object extends symmetrically
from <TT><STRONG>point</STRONG></TT>.
</TD></TR><TR VALIGN="TOP"><TD><P><B><TT><STRONG>shape</STRONG></TT>
</B></TD><TD><P>is a list of vectors that characterize the grid structure,
specifying its size and orientation:
A line requires one vector; rectangles and ellipses, two vectors;
and bricks and crosshairs, three vectors.
For "brick," the default <TT><STRONG>shape</STRONG></TT> specification
is {&#91;1 0 0&#93; &#91;0 1 0&#93; &#91;0 0 1&#93;};
for other structures, the default specification is the appropriate
corresponding vector list.
</TD></TR><TR VALIGN="TOP"><TD><P><B><TT><STRONG>density</STRONG></TT>
</B></TD><TD><P>determines the number of points in the output.
For crosshairs and bricks, the specification is a list of length 3;
for rectangles, a list of length 2; and for the other structures,
a single integer.
In each case, <TT><STRONG>density</STRONG></TT> is the number of points
along the edge in question.
Bricks and rectangles are filled.
</TD></TR></TABLE>
<P><B>Note: </B>Specifying <TT><STRONG>point</STRONG></TT> and
<TT><STRONG>shape</STRONG></TT>
as 2-dimensional vectors can produce a 2-dimensional output
<TT><STRONG>grid</STRONG></TT> for the structures "ellipse,"
"line," "point," and "rectangle."
<P><STRONG>Components</STRONG>
<P>
Creates "positions" and "connections" components.
<P><STRONG>Example Visual Programs</STRONG>
<PRE>
InvalidData.net
MakeLineMacro.net
PlotLine.net
PlotTwoLines.net
ThunderStreamlines.net
SIMPLE/Grid.net
</PRE>
<P><STRONG>See Also</STRONG>
<P>
&nbsp;<A HREF="refgu039.htm#HDRCONSTRU">Construct</A>,
&nbsp;<A HREF="refgu068.htm#HDRGLYPH">Glyph</A>,
&nbsp;<A HREF="refgu091.htm#HDRMAP">Map</A>,
&nbsp;<A HREF="refgu148.htm#HDRSTREAKL">Streakline</A>,
&nbsp;<A HREF="refgu149.htm#HDRSTREAML">Streamline</A>
		<P>
		<HR>
		<DIV align="center">
			<P><A href="../allguide.htm"><IMG src="../images/foot-fc.gif" width="94" height="18" border="0" alt="Full Contents"></A> <A href="../qikguide.htm"><IMG src="../images/foot-qs.gif" width="94" height="18" border="0" alt="QuickStart Guide"></A> <A href="../usrguide.htm"><IMG src="../images/foot-ug.gif" width="94" height="18" border="0" alt="User's Guide"></A> <A href="../refguide.htm"><IMG src="../images/foot-ur.gif" width="94" height="18" border="0" alt="User's Reference"></A></P>
		</DIV>
		<DIV align="center">
			<P><FONT size="-1">[ <A href="http://www.research.ibm.com/dx">OpenDX Home at IBM</A>&nbsp;|&nbsp;<A href="http://www.opendx.org/">OpenDX.org</A>&nbsp;] </FONT></P>
			<P></P>
		</DIV>
		<P></P>
	</BODY></HTML>
